package models

/**
 *
 * @author  镜湖老杨
 * @date  2020/12/25 10:25 上午
 * @version 1.0
 */
import (
	_ "gorm.io/gorm"
)

type WpTermRelationships struct {
	ObjectId          int64       `gorm:"column:object_id;primaryKey" json:"object_id"`
	TermTaxonomyId        int64       `gorm:"column:term_taxonomy_id;primaryKey" json:"term_taxonomy_id" `
	TermOrder        int32       `gorm:"column:term_order" json:"term_order" `
	SortsName WpTerms     `gorm:"foreignKey:term_taxonomy_id;references:TermId" json:"sorts_name"`
}

func (*WpTermRelationships) TableName() string {
	return "wp_term_relationships"
}
